package com.example.smartcity_poverty.ui.AllService.JobSearch.adapter

import com.example.smartcity_poverty.Base.BaseRecyclerAdapter
import com.example.smartcity_poverty.logic.Repository.coroutine
import com.example.smartcity_poverty.logic.ServiceBean.JobSearchBean.JSMoreModel
import com.example.smartcity_poverty.ui.AllService.JobSearch.fragment.JobSearchFragment
import com.example.smartcity_poverty.ui.AllService.JobSearch.fragment.JobSearchFragment.Companion.arrayListName
import kotlinx.android.synthetic.main.re_js_more.*
import kotlinx.coroutines.Dispatchers

/**
 *  created by ikun
 *  ANDROID STUDIO - version 4.0
 *  email: jinkunwei41@gmail.com
 * --------------------------------
 *
 **/
class JsMoreAdapter(
    val list: MutableList<JSMoreModel.RowsBean>,
    layoutId: Int
) : BaseRecyclerAdapter<JSMoreModel.RowsBean>(list, layoutId) {
    override fun setData(
        view: BaseViewHolder.ViewFind,
        data: JSMoreModel.RowsBean,
        position: Int,
        holder: BaseViewHolder
    ) {
        val d = list[position]
        val fv = holder.viewFind
        holder.viewFind.view?.context


        fv.jsMoreTitle.text = d.professionName

        holder.itemView.setOnClickListener {
            arrayListName = d.professionName.toString()
        }
    }
}